package com.linln;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;

/**
 * Spring Boot 2 @EnableWebMvc 注解和@EnableSpringDataWebSupport 注解使用说明
 * https://blog.csdn.net/afgasdg/article/details/81946026
 * @author 小懒虫
 * @date 2018/8/14
 */
@SpringBootApplication(scanBasePackages = "com.linln")
@EnableCaching // 开启缓存
public class BootApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(BootApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(BootApplication.class);
    }
}
